const addZero = (num) => num > 9 ? num : "0" + num;

function getTime() {
    let date = new Date();
    return date.getFullYear() + "-" + addZero(date.getMonth() + 1) + "-" + addZero(date.getDate());
}
export default getTime